package web.api.common.model;

import blue.validation.group.SaveModel;

import javax.validation.constraints.NotEmpty;

/**
 * @author Jin Zheng
 * @since 1.0 2020-08-31
 */
public class User
{
	@NotEmpty(groups = {SaveModel.class}, message = "用户名不能为空")
	private String username;
	@NotEmpty(groups = {SaveModel.class}, message = "密码不能为空")
	private String password;

	public User()
	{
	}

	public String getUsername()
	{
		return username;
	}

	public void setUsername(String username)
	{
		this.username = username;
	}

	public String getPassword()
	{
		return password;
	}

	public void setPassword(String password)
	{
		this.password = password;
	}
}
